<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>文本装饰线</title>
  <style>
    div {
      text-decoration: underline;
    }
    .nodeco {
      text-decoration: overline;
    }
    .overco {
      text-decoration: line-through;
    }
    a {
      text-decoration: none;
    }
  </style>
</head>
<body>
  <div>这是一段文本</div>
  <p class="nodeco">这也是一段文本</p>
  <p class = "overdeco">我的小猫暴脾气</p>
  <a href="#">百度一下</a>
</body>
</html>